package go.mybatis.mapper;

import go.mybatis.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by shehuilong on 2018/5/5.
 */
public interface UserMapper {
    public User queryById(Long id);

    public List<User> queryBy();

    public void insertUser(User user);

    public void updateUser(User user);

    public void deleteById(Long id);

    public List<User> queryByIf(@Param("name") String name);

    public List<User> queryLikeUserNameOrAge(@Param("userName")String userName,@Param("age") Integer age);

    public List<User> queryLikeUserNameAndAge(@Param("userName")String userName,@Param("age")Integer age);

    public void updateUserSet(User user);
}
